/* Copyright (c) [2025] [zhi1208@126.com]
 * SPDX-License-Identifier: MIT
 */

/*********************
 *      INCLUDES
 *********************/
#include "lvgl.h"

#if (LVGL_VERSION_MAJOR >= 9 && LVGL_VERSION_MINOR >= 4 && LVGL_VERSION_PATCH >= 0)
/*********************
 *      DEFINES
 *********************/

#if (!LV_USE_TRANSLATION)
#error "在lv_conf.h文件中启用宏【LV_USE_TRANSLATION】"
#endif

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 *  STATIC PROTOTYPES
 **********************/

/**********************
 *  STATIC VARIABLES
 **********************/
static const char *languages[] = {"zh", "en", NULL};
static const char *tags[] = {
    /* 主页 */
    "星期一",
    "星期二",
    "星期三",
    "星期四",
    "星期五",
    "星期六",
    "星期日",
    "相对湿度",
    "降水概率",
    "风力等级",
    "级",
    "灯带",
    "设置"};
static const char *translations[] = {
    /* 主页 */
    "星期一",
    "Mon",
    "星期二",
    "Tue",
    "星期三",
    "Wed",
    "星期四",
    "Thu",
    "星期五",
    "Fri",
    "星期六",
    "Sat",
    "星期日",
    "Sun",
    "相对湿度",
    "RH",
    "降水概率",
    "POP",
    "风力等级",
    "BF",
    "级",
    "Level",
    "灯带",
    "Led strip",
    "设置",
    "Setting"};

/**********************
 *      MACROS
 **********************/

/**********************
 *   GLOBAL FUNCTIONS
 **********************/
void hmi_translations_init()
{
#if (LVGL_VERSION_MAJOR >= 9 && LVGL_VERSION_MINOR >= 4 && LVGL_VERSION_PATCH >= 0)
    lv_translation_add_static(languages, tags, translations);
#endif
}

/**********************
 *   STATIC FUNCTIONS
 **********************/
#endif